package com.ddc.study.util;

import com.ddc.study.BuildConfig;

/**
 * Created on 2018/7/27.
 *
 * @author lshun
 * @version 1.0
 */
public class Log {
    private static final boolean DEBUG = BuildConfig.DEBUG;
    private static final boolean DEBUG_I = true;
    private static final boolean DEBUG_V = true;
    private static final boolean DEBUG_D = true;
    private static final boolean DEBUG_W = true;
    private static final boolean DEBUG_E = true;

    public static void i(String tag, String content) {
        if (DEBUG && DEBUG_I)
            android.util.Log.i(tag, content);
    }

    public static void v(String tag, String content) {
        if (DEBUG && DEBUG_V)
            android.util.Log.v(tag, content);
    }

    public static void d(String tag, String content) {
        if (DEBUG && DEBUG_D)
            android.util.Log.d(tag, content);
    }

    public static void w(String tag, String content) {
        if (DEBUG && DEBUG_W)
            android.util.Log.w(tag, content);
    }

    public static void e(String tag, String content) {
        if (DEBUG && DEBUG_E)
            android.util.Log.e(tag, content);
    }

    public static void e(String tag, String content, Throwable t) {
        if (DEBUG && DEBUG_E)
            android.util.Log.e(tag, content, t);
    }
}
